package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.dto.system.SysUserRoleDto;
import com.atguigu.spzx.model.entity.system.SysUser;

import java.util.List;
import java.util.Map;

/**
 * @author MikeCoder
 * @create 2023-12-0116:46
 * @description:
 * @verson:
 */
public interface SysUserMapper {
    SysUser selectSysUserByName(String username);

    List<SysUser> selectSysUserList(SysUserDto sysUserDto);

    Integer insert(SysUser sysUser);

    void update(SysUser sysUser);

    void delete(Integer id);

    void deleteUserRole(Integer userId);

    void batchInsertRole(SysUserRoleDto sysUserRoleDto);
}
